/*
 * @Descripttion: vue and node-bs
 * @Author: weijunliang-jul
 * @Date: 2021-02-04 10:49:56
 * @LastEditors: weijunliang-jul
 * @LastEditTime: 2021-03-10 17:49:46
 */
import request from '@/utils/request'

// 登录请求
export function login(data) {
  return request({
    url: '/users/login',
    method: 'post',
    data
  })
}

// 获取token解析的用户信息
export function getInfo() {
  return request({
    url: '/users/getUserDataByToken',
    method: 'get'
  })
}

export function getretrievePass(mainValues) {
  return request({
    url: '/captcha/getretrievePass',
    method: 'post',
    data: {
      mainValues: mainValues
    }
  })
}

export function compareCaptcha(mainValues, captcha) {
  return request({
    url: '/captcha/compareCaptcha',
    method: 'post',
    data: {
      mainValues: mainValues,
      captcha: captcha
    }
  })
}


